<template>
	<view class="searchButton">
		<view class="aa">
			<u-cell-group>
				<u-cell-item title="个人信息" :arrow="false"></u-cell-item>
				<u-cell-item title="姓名" :value="datainfo.name" :arrow="false"></u-cell-item>
				<u-cell-item title="身份证号" :value="datainfo.idCard" :arrow="false"></u-cell-item>
				<u-cell-item title="性别" :value="datainfo.sex" :arrow="false"></u-cell-item>
				<u-cell-item title="年龄" :value="datainfo.age" :arrow="false"></u-cell-item>
				<u-cell-item title="手机号" :value="datainfo.telephone" :arrow="false"></u-cell-item>
				<u-cell-item title="所在学院" :value="datainfo.facultyName" :arrow="false"></u-cell-item>
				<u-cell-item title="就读专业" :value="datainfo.discipline" :arrow="false"></u-cell-item>
				<u-cell-item title="所在班级" :value="datainfo.className" :arrow="false"></u-cell-item>
				<u-cell-item title="省份" :value="datainfo.province" :arrow="false"></u-cell-item>
				<u-cell-item title="学号" :value="datainfo.studentId" :arrow="false"></u-cell-item>
				<u-cell-item title="监护人姓名(父亲)" :value="datainfo.fname" :arrow="false"></u-cell-item>
				<u-cell-item title="联系电话" :value="datainfo.ftelephone" :arrow="false"></u-cell-item>
				<u-cell-item title="监护人姓名(母亲)" :value="datainfo.mname" :arrow="false"></u-cell-item>
				<u-cell-item title="联系电话" :value="datainfo.ftelephone" :arrow="false"></u-cell-item>
				<u-cell-item title="政治面貌" :value="datainfo.political" :arrow="false"></u-cell-item>
				<u-cell-item title="高考成绩" :value="datainfo.achievement" :arrow="false"></u-cell-item>
				<u-cell-item title="就读高中" :value="datainfo.highSchool" :arrow="false"></u-cell-item>
				<u-cell-item title="报道情况" value="已报道" :arrow="false" v-if='datainfo.reginfo=="是" '></u-cell-item>
				<u-cell-item title="报道情况" value="未报到" :arrow="false" v-else></u-cell-item>
			</u-cell-group>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				datainfo:{},
				isShow:false,
				isShow2:true,
				id:''
			}
		},
		methods:{
			searchInfo(){
				var _this=this
				let value=uni.getStorageSync('myinfo')
				console.log(value)
				let studentid=value.user.studentId
				var url='http://taruinfo.work:8088/newborn/getNewbornByLists?current=1&size=10&studentId='+studentid
				uni.request({
					url:url,
					method:'GET',
					success:function(res){
						console.log(res.data)
						_this.datainfo=res.data.data.records[0]
						if(res.data.code==200){
							_this.isShow = true
							_this.isShow2 = false
						}
						// console.log(_this.datainfo)
					}
				})
			}
		},
		created() {
			this.searchInfo()
		}
	}
</script>

<style scoped>
	
</style>
